package com.myschool.server.manager.impl;

import java.sql.Date;
import java.util.Set;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.myschool.server.dao.AttandenceDao;
import com.myschool.server.dao.GradeDao;
import com.myschool.server.dao.support.BaseEntityDaoHibernate;
import com.myschool.server.manager.AttandenceManager;
import com.myschool.server.manager.BaseManager;
import com.myschool.server.model.Attendance;

@Service
@Transactional
public class AttandenceManagerImpl extends BaseManager<Attendance> implements
AttandenceManager {

	@Autowired
	private AttandenceDao attandenceDao;
	
	
	@Override
	protected BaseEntityDaoHibernate getDao() {
		// TODO Auto-generated method stub
		return (BaseEntityDaoHibernate)  attandenceDao;
	}

 
	public Set<Attendance> retriveAttandenceBySection(Long secitionID, Date date) {
		// TODO Auto-generated method stub
		return this.attandenceDao.retriveAttandenceBySection(secitionID, date);
	}

}
